package com.base.forum.entity;

import com.mysteel.core.Entity;

/**
 * 帖子
 * @author chendonglin
 *
 */
public class Invitation implements Entity
{
	private static final long serialVersionUID = 3076470528383501454L;
	
	private long id;					//PK
	private long forumId;				//论坛ID
	
	private long publisherId;			//发表者ID
	private String publisherName;		//发表者的昵称
	private long publisherTime;			//发表时间
			
	private String title;				//标题
	private String content;				//类容
	
	private int length = 0;					//长度
	private long replyNum = 0L;				//回复数
	private long readNum = 0L;				//阅读数
	
	private long lastReplyId;			//最后回复ID
	private String lastReplyName;		//最后回复者的昵称
	private long lastReplyTime;			//最后回复时间
	
	public long getLastReplyTime()
	{
		return lastReplyTime;
	}
	public void setLastReplyTime(long lastReplyTime)
	{
		this.lastReplyTime = lastReplyTime;
	}
	public long getId()
	{
		return id;
	}
	public void setId(long id)
	{
		this.id = id;
	}
	public long getForumId()
	{
		return forumId;
	}
	public void setForumId(long forumId)
	{
		this.forumId = forumId;
	}
	public long getPublisherId()
	{
		return publisherId;
	}
	public void setPublisherId(long publisherId)
	{
		this.publisherId = publisherId;
	}
	public String getPublisherName()
	{
		return publisherName;
	}
	public void setPublisherName(String publisherName)
	{
		this.publisherName = publisherName;
	}
	public long getPublisherTime()
	{
		return publisherTime;
	}
	public void setPublisherTime(long publisherTime)
	{
		this.publisherTime = publisherTime;
	}
	public String getTitle()
	{
		return title;
	}
	public void setTitle(String title)
	{
		this.title = title;
	}
	public String getContent()
	{
		return content;
	}
	public void setContent(String content)
	{
		this.content = content;
	}
	public int getLength()
	{
		return length;
	}
	public void setLength(int length)
	{
		this.length = length;
	}
	public long getReplyNum()
	{
		return replyNum;
	}
	public void setReplyNum(long replyNum)
	{
		this.replyNum = replyNum;
	}
	public long getReadNum()
	{
		return readNum;
	}
	public void setReadNum(long readNum)
	{
		this.readNum = readNum;
	}
	public long getLastReplyId()
	{
		return lastReplyId;
	}
	public void setLastReplyId(long lastReplyId)
	{
		this.lastReplyId = lastReplyId;
	}
	public String getLastReplyName()
	{
		return lastReplyName;
	}
	public void setLastReplyName(String lastReplyName)
	{
		this.lastReplyName = lastReplyName;
	}
	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}
	public Invitation(long id, long forumId, long publisherId,
			String publisherName, long publisherTime, String title,
			String content, int length, long replyNum, long readNum,
			long lastReplyId, String lastReplyName,long lastReplyTime)
	{
		super ();
		this.id = id;
		this.forumId = forumId;
		this.publisherId = publisherId;
		this.publisherName = publisherName;
		this.publisherTime = publisherTime;
		this.title = title;
		this.content = content;
		this.length = length;
		this.replyNum = replyNum;
		this.readNum = readNum;
		this.lastReplyId = lastReplyId;
		this.lastReplyName = lastReplyName;
		this.lastReplyTime = lastReplyTime;
	}
	public Invitation()
	{
		super ();
	}
}
